<?php
namespace app\index\validate;

use think\Validate;

class Article extends Validate
{
    protected $rule = [
        'content'  =>  'require',
        'tag_id' =>  'require',
    ];
    protected $message  =   [
        'content.require' => '内容不能为空',
        'tag_id.require'   => '标签不能为空'
    ];
}
